package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.OriginalArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class DropOriginalFieldName extends AbstractMethod {
    private static final String name = "dropOriginalFieldName";
    /**
    DropOriginalFieldName indicates whether the original field name should be dropped when constructing the final field name.
    **/
    /**
    DropOriginalFieldName指示在构造最终字段名称时是否应删除原始字段名称。
    **/
    public DropOriginalFieldName(boolean ...drop) {
        super(new ArrayList<>(), name);
        //
        for(boolean argf : drop){
            this.args.add(new OriginalArg(argf));
        }


    }
}
